package com.zoe.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Zoe.Zhang
 * @date 2021/10/28
 * @description Spring的事件驱动模型
 *         事件：ApplicationEvent
 *         事件监听器：ApplicationListener
 *         事件发布器：Publish和Multicaster
 */
@SpringBootApplication
@EnableAsync
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class MainAppEvent {
    public static void main(String[] args) {
        SpringApplication.run(MainAppEvent.class, args);
    }
}
